// 运动项目
const sport_data = [
  { _id: 0, sport_name: "羽毛球" },
  { _id: 1, sport_name: "乒乓球" },
  { _id: 2, sport_name: "排球" },
  { _id: 3, sport_name: "篮球" },
];
const sport_map = new Map();
sport_data.forEach(o => sport_map.set(o._id, o.sport_name));

// 支付方式
const payment_data = [
  { _id: 0, payment_name: '余额支付' }
]
const payment_map = new Map();
payment_data.forEach(o => payment_map.set(o._id, o.payment_name));
// 订单状态
const order_state_data = [
  { _id: 0, order_state_name: '待支付' },
  { _id: 1, order_state_name: '交易关闭' },
  { _id: 2, order_state_name: '待使用' },
  { _id: 3, order_state_name: '交易完成' },
  { _id: 4, order_state_name: '已删除' },
]
const order_state_map = new Map();
order_state_data.forEach(o => order_state_map.set(o._id, o.order_state_name));
// 卡券状态
const coupon_state_data = [
  { _id: 0, coupon_state_name: '待核销' },
  { _id: 1, coupon_state_name: '已核销' },
  { _id: 2, coupon_state_name: '已退款' },
  { _id: 3, coupon_state_name: '已过期' },
]
const coupon_state_map = new Map();
coupon_state_data.forEach(o => coupon_state_map.set(o._id, o.coupon_state_name));

module.exports = {
  sport_data, sport_map,
  payment_data, payment_map,
  order_state_data, order_state_map,
  coupon_state_data, coupon_state_map,
}
